{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2016.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 8 Aug 2024, 13:23:14
{txt}
{com}. 
. import delimited "C:\Users\J.PARK\Dropbox\DISCRIMINATION PROJECT\FEVS\FEVS_2010-2019\fevs_2016_prdf.csv"
{res}{txt}(encoding automatically selected: ISO-8859-1)
{res}{text}(80 vars, 407,789 obs)

{com}. drop if q17=="X"
{txt}(17,784 observations deleted)

{com}. drop if q17==""
{txt}(3,081 observations deleted)

{com}. drop if q37=="X"
{txt}(18,521 observations deleted)

{com}. drop if q37==""
{txt}(8,183 observations deleted)

{com}. drop if q38=="X"
{txt}(16,440 observations deleted)

{com}. drop if q38==""
{txt}(4,208 observations deleted)

{com}. drop if q15=="X"
{txt}(3,201 observations deleted)

{com}. drop if q15==""
{txt}(1,299 observations deleted)

{com}. drop if q22=="X"
{txt}(13,289 observations deleted)

{com}. drop if q22==""
{txt}(2,482 observations deleted)

{com}. drop if q25=="X"
{txt}(7,993 observations deleted)

{com}. drop if q25==""
{txt}(1,917 observations deleted)

{com}. drop if q33=="X"
{txt}(6,696 observations deleted)

{com}. drop if q33==""
{txt}(2,756 observations deleted)

{com}. drop if q48==.
{txt}(2,157 observations deleted)

{com}. drop if q49==.
{txt}(1,242 observations deleted)

{com}. destring q17, replace
{txt}q17: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q37, replace
{txt}q37: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q38, replace
{txt}q38: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q15, replace
{txt}q15: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q22, replace
{txt}q22: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q25, replace
{txt}q25: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q33, replace
{txt}q33: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if q55=="X"
{txt}(7,578 observations deleted)

{com}. drop if q55==""
{txt}(4,265 observations deleted)

{com}. drop if q45=="X"
{txt}(7,550 observations deleted)

{com}. drop if q45==""
{txt}(1,392 observations deleted)

{com}. drop if q34=="X"
{txt}(4,354 observations deleted)

{com}. drop if q34==""
{txt}(1,158 observations deleted)

{com}. destring q55, replace
{txt}q55: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q45, replace
{txt}q45: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q34, replace
{txt}q34: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if dsuper=="X"
{txt}(0 observations deleted)

{com}. drop if dsuper==""
{txt}(11,888 observations deleted)

{com}. drop if dsex=="X"
{txt}(0 observations deleted)

{com}. drop if dsex==""
{txt}(2,558 observations deleted)

{com}. drop if dminority=="X"
{txt}(0 observations deleted)

{com}. drop if dminority==""
{txt}(6,305 observations deleted)

{com}. gen minority = 0 if dminority=="B"
{txt}(87,047 missing values generated)

{com}. replace minority = 1 if dminority=="A"
{txt}(87,047 real changes made)

{com}. gen gender = 1 if dsex == "B"
{txt}(132,584 missing values generated)

{com}. replace gender = 0 if dsex == "A"
{txt}(132,584 real changes made)

{com}. gen supervisor = 1 if dsuper == "B" 
{txt}(185,836 missing values generated)

{com}. replace supervisor = 0 if dsuper == "A"
{txt}(185,836 real changes made)

{com}. svyset [pweight=postwt]

{txt}Sampling weights:{col 19}{res}postwt
             {txt}VCE:{col 19}{res}linearized
     {txt}Single unit:{col 19}{res}missing
        {txt}Strata 1:{col 19}<one>
 Sampling unit 1:{col 19}<observations>
           FPC 1:{col 19}<zero>
{p2colreset}{...}

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:249,492}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,114,337}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:249,492}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:249,491}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8531526{col 33}{space 2} .0020637{col 44}{space 1}  413.41{col 53}{space 3}0.000{col 61}{space 4} .8491077{col 74}{space 3} .8571974
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .9860631{col 33}{space 2} .0021675{col 44}{space 1}  454.94{col 53}{space 3}0.000{col 61}{space 4} .9818149{col 74}{space 3} .9903113
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7128336{col 33}{space 2} .0024217{col 44}{space 1}  294.35{col 53}{space 3}0.000{col 61}{space 4} .7080871{col 74}{space 3} .7175801
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8466451{col 33}{space 2} .0015285{col 44}{space 1}  553.90{col 53}{space 3}0.000{col 61}{space 4} .8436493{col 74}{space 3}  .849641
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.357002{col 33}{space 2} .0055262{col 44}{space 1}  426.51{col 53}{space 3}0.000{col 61}{space 4} 2.346171{col 74}{space 3} 2.367833
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8435375{col 33}{space 2} .0015467{col 44}{space 1}  545.36{col 53}{space 3}0.000{col 61}{space 4}  .840506{col 74}{space 3} .8465691
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  2.47545{col 33}{space 2} .0061542{col 44}{space 1}  402.24{col 53}{space 3}0.000{col 61}{space 4} 2.463388{col 74}{space 3} 2.487512
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7250053{col 33}{space 2} .0020562{col 44}{space 1}  352.60{col 53}{space 3}0.000{col 61}{space 4} .7209752{col 74}{space 3} .7290354
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.178401{col 33}{space 2} .0045116{col 44}{space 1}  482.84{col 53}{space 3}0.000{col 61}{space 4} 2.169558{col 74}{space 3} 2.187243
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6376615{col 33}{space 2} .0028812{col 44}{space 1}  221.32{col 53}{space 3}0.000{col 61}{space 4} .6320144{col 74}{space 3} .6433086
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.234552{col 33}{space 2} .0104562{col 44}{space 1}  309.34{col 53}{space 3}0.000{col 61}{space 4} 3.214059{col 74}{space 3} 3.255046
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7719168{col 33}{space 2} .0020761{col 44}{space 1}  371.81{col 53}{space 3}0.000{col 61}{space 4} .7678477{col 74}{space 3}  .775986
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.925376{col 33}{space 2} .0087412{col 44}{space 1}  334.66{col 53}{space 3}0.000{col 61}{space 4} 2.908244{col 74}{space 3} 2.942509
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8324797{col 33}{space 2} .0018318{col 44}{space 1}  454.46{col 53}{space 3}0.000{col 61}{space 4} .8288895{col 74}{space 3}   .83607
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.706923{col 33}{space 2} .0074775{col 44}{space 1}  362.01{col 53}{space 3}0.000{col 61}{space 4} 2.692267{col 74}{space 3} 2.721578
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2}  .818832{col 33}{space 2}  .001932{col 44}{space 1}  423.82{col 53}{space 3}0.000{col 61}{space 4} .8150453{col 74}{space 3} .8226186
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.246544{col 33}{space 2} .0106082{col 44}{space 1}  306.04{col 53}{space 3}0.000{col 61}{space 4} 3.225753{col 74}{space 3} 3.267336
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9429724{col 33}{space 2} .0012846{col 44}{space 1}  734.05{col 53}{space 3}0.000{col 61}{space 4} .9404546{col 74}{space 3} .9454902
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.709243{col 33}{space 2} .0130156{col 44}{space 1}  284.98{col 53}{space 3}0.000{col 61}{space 4} 3.683733{col 74}{space 3} 3.734754
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9193761{col 33}{space 2} .0013854{col 44}{space 1}  663.61{col 53}{space 3}0.000{col 61}{space 4} .9166607{col 74}{space 3} .9220915
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  4.04874{col 33}{space 2} .0155405{col 44}{space 1}  260.53{col 53}{space 3}0.000{col 61}{space 4} 4.018281{col 74}{space 3} 4.079199
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2}  .283192{col 33}{space 2} .0025882{col 61}{space 4} .2781643{col 74}{space 3} .2883106
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .2884444{col 33}{space 2} .0026095{col 61}{space 4}  .283375{col 74}{space 3} .2936045
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .4743673{col 33}{space 2} .0029815{col 61}{space 4} .4685594{col 74}{space 3} .4802471
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2} .5933879{col 33}{space 2} .0036745{col 61}{space 4} .5862295{col 74}{space 3} .6006336
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .4041444{col 33}{space 2} .0032052{col 61}{space 4} .3979109{col 74}{space 3} .4104756
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .3069775{col 33}{space 2} .0030498{col 61}{space 4} .3010577{col 74}{space 3} .3130137
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2} .3295142{col 33}{space 2}  .003164{col 61}{space 4} .3233709{col 74}{space 3} .3357743
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2}  .110803{col 33}{space 2} .0024227{col 61}{space 4} .1061548{col 74}{space 3} .1156547
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1547476{col 33}{space 2} .0025475{col 61}{space 4} .1498344{col 74}{space 3}  .159822
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2} .2721307{col 33}{space 2} .0035213{col 61}{space 4} .2653157{col 74}{space 3} .2791207
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2} .0276796{col 33}{space 2} .0042745{col 61}{space 4} .0204507{col 74}{space 3} .0374637
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .4918683{col 33}{space 2} .0034525{col 61}{space 4} .4851477{col 74}{space 3} .4986819
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.038}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.975}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice, latent(JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:249,492}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,114,337}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:249,492}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:249,491}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6965111{col 27}{space 2} .0029843{col 38}{space 1}  233.39{col 47}{space 3}0.000{col 55}{space 4}  .690662{col 68}{space 3} .7023603
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.306283{col 27}{space 2} .0102364{col 38}{space 1}  322.99{col 47}{space 3}0.000{col 55}{space 4}  3.28622{col 68}{space 3} 3.326346
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .7540522{col 27}{space 2}  .002842{col 38}{space 1}  265.32{col 47}{space 3}0.000{col 55}{space 4} .7484819{col 68}{space 3} .7596225
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.529623{col 27}{space 2} .0116804{col 38}{space 1}  302.18{col 47}{space 3}0.000{col 55}{space 4}  3.50673{col 68}{space 3} 3.552516
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8139253{col 27}{space 2} .0027151{col 38}{space 1}  299.77{col 47}{space 3}0.000{col 55}{space 4} .8086037{col 68}{space 3} .8192469
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.389345{col 27}{space 2} .0109412{col 38}{space 1}  309.78{col 47}{space 3}0.000{col 55}{space 4}   3.3679{col 68}{space 3} 3.410789
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5148723{col 27}{space 2} .0041572{col 55}{space 4} .5067884{col 68}{space 3} .5230851
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4314052{col 27}{space 2} .0042861{col 55}{space 4} .4230859{col 68}{space 3} .4398882
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3375256{col 27}{space 2} .0044198{col 55}{space 4} .3289731{col 68}{space 3} .3463005
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.809}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity, latent(DIVERSITY)
{res}{txt}
{com}. 
. keep if agency =="AM" | agency =="IB" | agency =="FQ"| agency =="ED" | agency =="DN" | agency =="HU" | agency =="ST" | agency =="EP"  | agency =="EE"| agency =="FC" | agency =="DR" | agency =="FT" | agency =="GS" | agency =="NQ" | agency =="NN" | agency =="CU" | agency =="NL" | agency =="NF" | agency =="NU" | agency =="OM" | agency =="BG" | agency =="RR" | agency =="SE" | agency =="SB" | agency =="SZ" | plevel1 =="DD34" | plevel1 =="DD10" | plevel1 =="DD63" | plevel1 =="DD35" | plevel1 =="DD04" | plevel1 =="DD07" | plevel1 =="DD26" | plevel1 =="DD60" | plevel1 =="AG25" | plevel1 =="CM03" | plevel1 =="CM06" | plevel1 =="CM08" | plevel1 =="CM09" | plevel1 =="CM14" | plevel1 =="HE02" | plevel1 =="HE04" | plevel1 =="HE05" | plevel1 =="HE06" | plevel1 =="HE07" | plevel1 =="HE08" | plevel1 =="HE09" | plevel1 =="HE10" | plevel1 =="HE12" | plevel1 =="HS04" | plevel1 =="HS05" | plevel1 =="HS14" | plevel1 =="HS01" | plevel1 =="HS03" | plevel1 =="HS02" | plevel1 =="HS06" | plevel1 =="HS12" | plevel1 =="HS10" | plevel1 =="DJ15" | plevel1 =="DJ03" | plevel1 =="DJEA" | plevel1 =="DJ12" | plevel1 =="DJ09" | plevel1 =="DJ02" | plevel1 =="DJ08" | plevel1 =="DJ11" | plevel1 =="DL03" | plevel1 =="DL02" | plevel1 =="DL10" | plevel1 =="DL09" | plevel1 =="DL04" | plevel1 =="DL06" | plevel1 =="DL05" | plevel1 =="DL11" |agency =="AF" | agency =="AR" | plevel1 =="IN03" | plevel1 =="IN01" | plevel1 =="IN02" | plevel1 =="IN07" | plevel1 =="IN05" | plevel1 =="IN06" | plevel1 =="IN14" | agency =="NV" | plevel1 =="TRAI" | plevel1 =="TR91" | plevel1 =="TRFD" | plevel1 =="TR93" | plevel1 =="TRAJ" | plevel1 =="TRTG" | plevel1 =="TRAD" | plevel1 =="TD03" | plevel1 =="TD04" | plevel1 =="TD05" | plevel1 =="VA04" | plevel1 =="VA03" | plevel1 =="VA02"
{txt}(30,119 observations deleted)

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:219,373}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,026,251}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:219,373}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:219,372}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8545373{col 33}{space 2} .0021836{col 44}{space 1}  391.34{col 53}{space 3}0.000{col 61}{space 4} .8502575{col 74}{space 3} .8588171
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2}  .985894{col 33}{space 2} .0022892{col 44}{space 1}  430.67{col 53}{space 3}0.000{col 61}{space 4} .9814072{col 74}{space 3} .9903808
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7138386{col 33}{space 2} .0025676{col 44}{space 1}  278.02{col 53}{space 3}0.000{col 61}{space 4} .7088062{col 74}{space 3} .7188711
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8474006{col 33}{space 2} .0016215{col 44}{space 1}  522.60{col 53}{space 3}0.000{col 61}{space 4} .8442225{col 74}{space 3} .8505787
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  2.34361{col 33}{space 2} .0058263{col 44}{space 1}  402.25{col 53}{space 3}0.000{col 61}{space 4} 2.332191{col 74}{space 3}  2.35503
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8446889{col 33}{space 2} .0016398{col 44}{space 1}  515.13{col 53}{space 3}0.000{col 61}{space 4}  .841475{col 74}{space 3} .8479028
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.462835{col 33}{space 2} .0064977{col 44}{space 1}  379.03{col 53}{space 3}0.000{col 61}{space 4}   2.4501{col 74}{space 3} 2.475571
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7245034{col 33}{space 2} .0021916{col 44}{space 1}  330.57{col 53}{space 3}0.000{col 61}{space 4} .7202078{col 74}{space 3} .7287989
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.169624{col 33}{space 2} .0047789{col 44}{space 1}  454.00{col 53}{space 3}0.000{col 61}{space 4} 2.160257{col 74}{space 3}  2.17899
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6377866{col 33}{space 2} .0030444{col 44}{space 1}  209.50{col 53}{space 3}0.000{col 61}{space 4} .6318197{col 74}{space 3} .6437535
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.217079{col 33}{space 2} .0110354{col 44}{space 1}  291.52{col 53}{space 3}0.000{col 61}{space 4}  3.19545{col 74}{space 3} 3.238708
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7719771{col 33}{space 2} .0022056{col 44}{space 1}  350.02{col 53}{space 3}0.000{col 61}{space 4} .7676543{col 74}{space 3} .7762999
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.914461{col 33}{space 2} .0092651{col 44}{space 1}  314.56{col 53}{space 3}0.000{col 61}{space 4} 2.896302{col 74}{space 3}  2.93262
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8331656{col 33}{space 2} .0019377{col 44}{space 1}  429.97{col 53}{space 3}0.000{col 61}{space 4} .8293676{col 74}{space 3} .8369635
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  2.68954{col 33}{space 2} .0078657{col 44}{space 1}  341.93{col 53}{space 3}0.000{col 61}{space 4} 2.674123{col 74}{space 3} 2.704957
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8191514{col 33}{space 2} .0020443{col 44}{space 1}  400.69{col 53}{space 3}0.000{col 61}{space 4} .8151445{col 74}{space 3} .8231582
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.226977{col 33}{space 2} .0111625{col 44}{space 1}  289.09{col 53}{space 3}0.000{col 61}{space 4} 3.205099{col 74}{space 3} 3.248855
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9436619{col 33}{space 2} .0013592{col 44}{space 1}  694.30{col 53}{space 3}0.000{col 61}{space 4}  .940998{col 74}{space 3} .9463258
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.689228{col 33}{space 2} .0137151{col 44}{space 1}  268.99{col 53}{space 3}0.000{col 61}{space 4} 3.662346{col 74}{space 3} 3.716109
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9188261{col 33}{space 2} .0014673{col 44}{space 1}  626.21{col 53}{space 3}0.000{col 61}{space 4} .9159502{col 74}{space 3} .9217019
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 4.031796{col 33}{space 2} .0164265{col 44}{space 1}  245.44{col 53}{space 3}0.000{col 61}{space 4} 3.999601{col 74}{space 3} 4.063992
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2} .2819121{col 33}{space 2} .0027481{col 61}{space 4}  .276577{col 74}{space 3} .2873502
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .2865006{col 33}{space 2} .0027702{col 61}{space 4} .2811223{col 74}{space 3} .2919819
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .4750949{col 33}{space 2} .0031757{col 61}{space 4} .4689112{col 74}{space 3} .4813602
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2} .5932283{col 33}{space 2} .0038833{col 61}{space 4} .5856657{col 74}{space 3} .6008885
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .4040513{col 33}{space 2} .0034053{col 61}{space 4} .3974319{col 74}{space 3}  .410781
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .3058351{col 33}{space 2} .0032289{col 61}{space 4} .2995716{col 74}{space 3} .3122297
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2}  .328991{col 33}{space 2} .0033492{col 61}{space 4} .3224917{col 74}{space 3} .3356214
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1095023{col 33}{space 2} .0025652{col 61}{space 4} .1045883{col 74}{space 3} .1146472
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1557587{col 33}{space 2} .0026964{col 61}{space 4} .1505625{col 74}{space 3} .1611342
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2}  .269766{col 33}{space 2}  .003732{col 61}{space 4} .2625497{col 74}{space 3} .2771806
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2}  .028013{col 33}{space 2} .0045139{col 61}{space 4} .0204268{col 74}{space 3} .0384165
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .4904344{col 33}{space 2} .0036657{col 61}{space 4} .4833021{col 74}{space 3}  .497672
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.037}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.975}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice2, latent (JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:219,373}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,026,251}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:219,373}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:219,372}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6970091{col 27}{space 2} .0031564{col 38}{space 1}  220.82{col 47}{space 3}0.000{col 55}{space 4} .6908225{col 68}{space 3} .7031956
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.286404{col 27}{space 2} .0107809{col 38}{space 1}  304.84{col 47}{space 3}0.000{col 55}{space 4} 3.265274{col 68}{space 3} 3.307534
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .7557184{col 27}{space 2} .0030116{col 38}{space 1}  250.94{col 47}{space 3}0.000{col 55}{space 4} .7498158{col 68}{space 3} .7616211
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.503234{col 27}{space 2} .0122546{col 38}{space 1}  285.87{col 47}{space 3}0.000{col 55}{space 4} 3.479215{col 68}{space 3} 3.527253
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8158812{col 27}{space 2} .0028745{col 38}{space 1}  283.83{col 47}{space 3}0.000{col 55}{space 4} .8102472{col 68}{space 3} .8215153
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}   3.3696{col 27}{space 2}  .011543{col 38}{space 1}  291.92{col 47}{space 3}0.000{col 55}{space 4} 3.346976{col 68}{space 3} 3.392225
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5141784{col 27}{space 2} .0044001{col 55}{space 4} .5056261{col 68}{space 3} .5228753
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4288896{col 27}{space 2} .0045518{col 55}{space 4} .4200603{col 68}{space 3} .4379045
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3343378{col 27}{space 2} .0046906{col 55}{space 4} .3252696{col 68}{space 3} .3436587
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.810}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity2, latent (DIVERSITY)
{res}{txt}
{com}. 
. sum justice, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.206642      -2.285197
{txt} 5%    {res}-1.640116      -2.285197
{txt}10%    {res}-1.168845      -2.285197       {txt}Obs         {res}    219,373
{txt}25%    {res}-.3958918      -2.285197       {txt}Sum of wgt. {res}    219,373

{txt}50%    {res} .2311305                      {txt}Mean          {res} .0814546
                        {txt}Largest       Std. dev.     {res} .8471628
{txt}75%    {res} .6813102        1.33081
{txt}90%    {res}  1.13011        1.33081       {txt}Variance      {res} .7176847
{txt}95%    {res}  1.28937        1.33081       {txt}Skewness      {res}-.7311028
{txt}99%    {res}  1.33081        1.33081       {txt}Kurtosis      {res}  3.05534
{txt}
{com}. 
. sum justice2, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res} -2.20142      -2.279637
{txt} 5%    {res}-1.634549      -2.279637
{txt}10%    {res}-1.163082      -2.279637       {txt}Obs         {res}    219,373
{txt}25%    {res}-.3906467      -2.279637       {txt}Sum of wgt. {res}    219,373

{txt}50%    {res} .2380094                      {txt}Mean          {res} .0887283
                        {txt}Largest       Std. dev.     {res} .8480918
{txt}75%    {res} .6897647        1.34021
{txt}90%    {res} 1.138534        1.34021       {txt}Variance      {res} .7192598
{txt}95%    {res}  1.29873        1.34021       {txt}Skewness      {res}-.7300986
{txt}99%    {res}  1.34021        1.34021       {txt}Kurtosis      {res}  3.05349
{txt}
{com}. 
. sum diversity, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-1.969202      -1.969202
{txt} 5%    {res}-1.287139      -1.969202
{txt}10%    {res}-.8260789      -1.969202       {txt}Obs         {res}    219,373
{txt}25%    {res}-.3138281      -1.969202       {txt}Sum of wgt. {res}    219,373

{txt}50%    {res} .2273747                      {txt}Mean          {res} .0507162
                        {txt}Largest       Std. dev.     {res} .6681823
{txt}75%    {res} .4579049        .959567
{txt}90%    {res}  .959567        .959567       {txt}Variance      {res} .4464675
{txt}95%    {res}  .959567        .959567       {txt}Skewness      {res}-.8879681
{txt}99%    {res}  .959567        .959567       {txt}Kurtosis      {res}  3.71712
{txt}
{com}. 
. sum diversity2, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-1.961826      -1.961826
{txt} 5%    {res}-1.280957      -1.961826
{txt}10%    {res}-.8205878      -1.961826       {txt}Obs         {res}    219,373
{txt}25%    {res}-.3049186      -1.961826       {txt}Sum of wgt. {res}    219,373

{txt}50%    {res} .2332083                      {txt}Mean          {res} .0567251
                        {txt}Largest       Std. dev.     {res} .6678462
{txt}75%    {res} .4633931       .9648865
{txt}90%    {res} .9648865       .9648865       {txt}Variance      {res} .4460186
{txt}95%    {res} .9648865       .9648865       {txt}Skewness      {res} -.888126
{txt}99%    {res} .9648865       .9648865       {txt}Kurtosis      {res} 3.716669
{txt}
{com}. 
. corr justice justice2
{txt}(obs=219,373)

             {c |}  justice justice2
{hline 13}{c +}{hline 18}
     justice {c |}{res}   1.0000
    {txt}justice2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. corr diversity diversity2 
{txt}(obs=219,373)

             {c |} divers~y divers~2
{hline 13}{c +}{hline 18}
   diversity {c |}{res}   1.0000
  {txt}diversity2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. log close 
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2016.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 8 Aug 2024, 13:23:53
{txt}{.-}
{smcl}
{txt}{sf}{ul off}